'''
3.3.2 判断语句
'''

# a = 10
# b = 20
# if a > b:
#     print('如果变量a大于变量b，则执行这个代码块')
#     c = a + b
# else:
#     print('如果变量a小于或等于变量b，则执行这个代码块')
#     c = b - a
# print('c:', c)

a = 10
b = 20
c = 30
d = 40

if a < b and c > d:
    print('使用if进行判断，满足条件则执行当前代码块')
elif not(a > b) or c > d:
    print('使用elif再次进行判断，那么条件则执行当前代码块')
else:
    print('上述条件都没有满足，则执行else')